<?php
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
 
// import Joomla view library
jimport('joomla.application.component.view');
 
/**
 * HTML View class for the HelloWorld Component
 */
class ShopViewShop extends JView
{
	protected $state = null;
	protected $items = null;
	protected $path_img = null;
	// Overwriting JView display method
	function display($tpl = null) 
	{
		// Assign data to the view
		$this->state = $this->get('State');
		$this->items = $this->get('Items');
		$this->pagination = $this->get('Pagination');
		$this->path_img = JURI::root().'images/image_product/';
		$this->params = &JComponentHelper::getParams( 'com_shop' );
		// Check for errors.
		if (count($errors = $this->get('Errors'))) 
		{
			JError::raiseError(500, implode('<br />', $errors));
			return false;
		}
		// Display the view
		parent::display($tpl);
	}

}